<template>
    {{ msg }}
    <el-button @click="handlClick">click</el-button>
</template>

<script>
export default {
    emits: ['changeMsg'],
    props: {
        msg: String,
    },
    setup (props, context) {
        // console.log(props, context);
        const handlClick = () => {
            context.emit('changeMsg');
        };
        return {
            handlClick,
        };
    },
};
</script>

<style>

</style>
